import request from '@/utils/request'

// 查询办卡记录列表
export function listApplyCard(query) {
  return request({
    url: '/customer/applyCard/list',
    method: 'get',
    params: query
  })
}

// 查询办卡记录详细
export function getApplyCard(id) {
  return request({
    url: '/customer/applyCard/' + id,
    method: 'get'
  })
}

// 新增办卡记录
export function addApplyCard(data) {
  return request({
    url: '/customer/applyCard',
    method: 'post',
    data: data
  })
}

// 修改办卡记录
export function updateApplyCard(data) {
  return request({
    url: '/customer/applyCard',
    method: 'put',
    data: data
  })
}

// 删除办卡记录
export function delApplyCard(id) {
  return request({
    url: '/customer/applyCard/' + id,
    method: 'delete'
  })
}

// 导出办卡记录
export function exportApplyCard(query) {
  return request({
    url: '/customer/applyCard/export',
    method: 'get',
    params: query
  })
}

// 查询办卡记录列表
export function listInfoVo(query) {
  return request({
    url: '/customer/applyCard/listVo',
    method: 'get',
    params: query
  })
}

// 查询办卡记录详细
export function getApplyCardVo(id) {
  return request({
    url: '/customer/applyCard/getInfoVo/' + id,
    method: 'get'
  })
}